package com.wildworld.core.properties;

/**
 * @author gzhebrakov
 *         Date: 26.06.12
 *         Time: 19:49
 */
public class MapProperty {

    private Integer width;
    private Integer height;
    private Integer waterPercent;
    private Integer herbPercent;

    public void setWidth(Integer width){
        if (width != null){
            this.width = width;
        }
    }

    public Integer getWidth(){
        return width;
    }

    public void setHeight(Integer height){
        if (height != null){
            this.height = height;
        }
    }

    public Integer getHeight(){
        return height;
    }

    public void setWaterPercent(Integer waterPercent){
        if (waterPercent != null && waterPercent <= 100 && waterPercent >= 0){
            this.waterPercent = waterPercent;
        }
    }

    public Integer getWaterPercent(){
        return waterPercent;
    }

    public void setHerbPercent(Integer herbPercent){
        if (herbPercent != null && herbPercent <= 100 && herbPercent >= 0){
            this.herbPercent = herbPercent;
        }
    }

    public Integer getHerbPercent(){
        return herbPercent;
    }
}
